package me.yushuai.wukong.base.repository;

import me.yushuai.wukong.base.entity.ConfGroup;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * Conf basic info
 *
 * @author zhoushuai@189.cn
 * @since 2022-11-10
 */
public interface ConfGroupRepository extends JpaRepository<ConfGroup, Long>,
        JpaSpecificationExecutor<ConfGroup> {

    @Query("from ConfGroup where bizId = ?1")
    boolean existsByBizId(String bizId);

}
